package com.mask.roll.common.code;

/**
 * @author hx
 * @since 2021/10/21 12:05 下午
 */

public enum ServiceEnums {

    /**
     * A1开头 讲师相关
     */
    EDU_TEACHER_LIST("A1001","获取讲师列表成功"),
    EDU_TEACHER_DELETE_SUCCESS("A1002","删除讲师成功"),
    EDU_TEACHER_DELETE_FAILED("A1003","删除讲师失败"),
    EDU_TEACHER_ADD_SUCCESS("A1004","添加讲师成功"),
    EDU_TEACHER_ADD_FAILED("A1005","添加讲师失败"),
    EDU_TEACHER_GET("A1006","查询讲师成功"),
    EDU_TEACHER_GET_FAILED("A1007","查询讲师失败"),
    EDU_TEACHER_UPDATE_SUCCESS("A1008","修改讲师成功"),
    EDU_TEACHER_UPDATE_FAILED("A1009","修改讲师失败"),
    EDU_FRONT_TEACHER_PAGE_SUCCESS("A1010","前台获取讲师列表成功"),
    EDU_FRONT_TEACHER_DETAIL_SUCCESS("A1011","获取前台讲师详细信息成功"),
    EDU_FRONT_COURSE_PAGE_SUCCESS("A1012","前台获取课程列表成功"),
    EDU_FRONT_COURSE_PAGE_FAILED("A1013","前台获取课程列表失败"),
    EDU_FRONT_COURSE_DETAIL_SUCCESS("A1011","获取前台课程详细信息成功"),
    EDU_FRONT_COURSE_DETAIL_FAILED("A1011","获取前台课程详细信息成功"),



    /**
     * A2开头 oss相关
     */
    OSS_UPLOAD_AVATAR("A2001","讲师头像上传成功"),
    OSS_UPLOAD_COURSE_COVER("A2002","课程封面图片上传成功"),


    /**
     * A3开头 excel相关
     */
    EXCEL_READ_ERROR("A3001","读取excel失败"),
    EXCEL_FILE_NOT_DATA("A3002","excel文件数据为空"),
    EXCEL_ADD_SUBJECT("A3003","excel导入课程分类成功"),


    /**
     * A4开头 课程相关
     */
    SUBJECT_TREE_LIST("A4001","获取课程分类成功"),
    COURSE_ADD_ERROR("A4002","添加课程信息失败"),
    COURSE_DESCRIPTION_ADD_ERROR("A4003","添加课程简介失败"),
    COURSE_ADD_SUCCESS("A4004","添加课程信息成功"),
    COURSE_INFO_VO("A4005","获取课程信息成功"),
    COURSE_INFO_UPDATE("A4006","修改课程信息成功"),
    COURSE_INFO_UPDATE_FAILED("A4007","修改课程信息失败"),
    COURSE_DESCRIPTION_UPDATE_FAILED("A4008","修改课程描述信息失败"),
    COURSE_SELECT_INFO_FAILED("A4009","查询课程信息失败"),
    COURSE_SELECT_DESCRIPTION_FAILED("A4009","查询课程简介信息失败"),
    COURSE_SELECT_PUBLISH_SUCCESS("A4010","查询课程确认信息成功"),
    COURSE_PUBLISH_SUCCESS("A4011","课程发布成功"),
    COURSE_LIST_SUCCESS("A4012","获取课程列表成功"),
    COURSE_DELETE_SUCCESS("A4013","删除课程成功"),
    COURSE_DELETE_FAILED("A4014","删除课程失败"),
    COURSE_FRONT_GET_SUCCESS("A4015","获取前台课程成功"),


    /**
     * A5章节相关
     */
    CHAPTER_VIDEO_GET("A5001","获取课程大纲列表成功"),
    CHAPTER_ADD_SUCCESS("A5002","添加章节成功"),
    CHAPTER_SELECT_SUCCESS("A5003","查询章节成功"),
    CHAPTER_UPDATE_SUCCESS("A5004","修改章节成功"),
    CHAPTER_EXISTS_ERROR("A5005","该章节下包含小节,请先删除该章节下的所有小节信息"),
    CHAPTER_DELETE_ERROR("A5006","删除章节失败"),
    CHAPTER_DELETE_SUCCESS("A5007","删除章节成功"),

    /**
     * A6开头 课程小节视频相关
     */
    VIDEO_ADD_SUCCESS("A6001","添加课时成功"),
    VIDEO_DELETE_SUCCESS("A6002","删除课时成功"),
    VIDEO_UPLOAD_SUCCESS("A6003","视频上传成功"),
    VIDEO_UPLOAD_FAILED("A6004","视频上传失败"),
    VOD_DELETE_SUCCESS("A6005","视频删除成功"),
    VOD_DELETE_FAILED("A6006","视频删除失败"),
    VOD_DELETE_MATCH_SUCCESS("A6007","删除多个视频成功"),
    VOD_DELETE_MATCH_FAILED("A6008","删除多个视频失败"),
    VOD_VIDEO_GET_AUTH_SUCCESS("A6009","获取视频凭证成功"),

    /**
     * A7开头 轮播图相关
     */
    CMS_BANNER_GET_SUCCESS("A7001","获取轮播图成功"),
    CMS_BANNER_GET_FAILED("A7002","获取轮播图失败"),

    /**
     * A8开头 用户短信相关
     */
    SMS_PHONE_NULL("A8001","手机号不能为空"),
    SMS_CODE_NULL("A8002","验证码不能为空"),
    SMS_REGEX_PHONE("A8003","手机号格式不正确"),
    SMS_REGEX_CODE("A8004","验证码格式不正确"),
    SMS_CODE_NO_EXIST("A8005","请先发送验证码"),
    SMS_CODE_EXPIRE("A8006","验证码已过期"),
    SMS_CODE_NO_MATCH("A8007","验证码不正确"),
    SMS_CODE_MATCH("A8008","验证码正确"),

    /**
     * A9开头 用户中心相关
     */
    UCENTER_MEMBER_MOBILE_NULL("A9001","手机号不能为空"),
    UCENTER_MEMBER_PASSWORD_NULL("A9002","密码不能为空"),
    UCENTER_MEMBER_NOT_EXIST("A9003","没有该用户"),
    UCENTER_MEMBER_PASSWORD_ERROR("A9004","登录密码错误"),
    UCENTER_MEMBER_DISABLED("A9005","该用户已禁用,请联系管理员申诉"),
    UCENTER_MEMBER_LOGIN_SUCCESS("A9006","登录成功"),
    UCENTER_MEMBER_LOGIN_FAILED("A9007","登录失败"),
    UCENTER_MEMBER_LOGOUT_SUCCESS("A90012","注销成功"),
    UCENTER_MEMBER_REGISTER_NULL("A9008","用户注册信息不能为空"),
    UCENTER_MEMBER_REGISTER_SUCCESS("A9009","注册成功"),
    UCENTER_MEMBER_REGISTER_MOBILE_REPEAT("A9010","该手机号已被注册"),
    UCENTER_MEMBEER_GET_INFO("A9011","获取用户信息成功"),


    /**
     * A11开头 订单相关
     */
    ORDER_CREATE_SUCCESS("A1101","生成订单成功"),
    ORDER_CREATE_FAILED("A1102","生成订单成功"),
    ORDER_QUERY_SUCCESS("A1103","查询订单成功"),
    ORDER_QUERY_FAILED("A1104","查询订单失败"),
    ORDER_CREATE_NATIVE_SUCCESS("A1105","生成二维码成功"),
    ORDER_PAY_STATE_SUCCESS("A1106","订单支付成功"),
    ORDER_PAY_STATE_FAILED("A1107","订单支付失败"),
    ORDER_PAY_STATE_NOW("A1108","订单支付中"),
    ORDER_MEMBER_COURSE_PAID("A1109","课程已支付"),
    ORDER_MEMBER_COURSE_UNPAID("A1110","课程未支付"),

    /**
     * A12开头 用户数据统计相关
     */
    STATISTICS_COUNT_REGISTER_DAY_SUCCESS("A1201","查询某一天注册人数成功"),
    STATISTICS_COUNT_REGISTER_DAY_FAILED("A1202","查询某一天注册人数失败"),
    STATISTICS_GENERATE_COUNT_REGISTER_SUCCESS("A1203","生成日注册人数成功"),
    STATISTICS_GENERATE_COUNT_REGISTER_FAILED("A1204","生成日注册人数成功"),
    STATISTICS_ECHART_SHOW_SUCCESS("A1205","图表数据获取成功"),
    STATISTICS_ECHART_SHOW_FAILED("A1206","图表数据获取失败"),
    STATISTICS_ECHART_QUERY_NULL("A1207","查询条件不能为空"),


    /**
     * A13开头 ACL访问权限相关
     */
    ACL_QUERY_ALL_MENU_SUCCESS("A1301","查询所有菜单权限成功"),
    ACL_QUERY_ALL_MENU_FAILED("A1302","查询所有菜单权限失败"),
    ACL_REMOVE_MENU_SUCCESS("A1303","删除菜单权限成功"),
    ACL_REMOVE_MENU_FAILED("A1304","删除菜单权限失败"),
    ACL_ASSIGN_ROLE_SUCCESS("A1305","角色分配权限成功"),
    ACL_GET_PERMISSION_BY_ROLE("A1306","根据角色获取权限菜单成功"),
    ACL_ADD_MENU_SUCCESS("A1307","新增菜单成功"),
    ACL_UPDATE_MENU_SUCCESS("A1308","修改菜单成功"),
    ACL_GET_USER_LIST_SUCCESS("A1309","获取管理用户分页列表成功"),
    ACL_ADD_USER_SUCCESS("A1310","新增管理用户成功"),
    ACL_UPDATE_USER_SUCCESS("A1311","修改管理用户成功"),
    ACL_REMOVE_USER_SUCCESS("A1312","删除管理用户成功"),
    ACL_REMOVE_USER_LIST_BY_ID_SUCCESS("A1313","根据id列表删除管理用户成功"),
    ACL_GET_ROLE_LIST_BY_USER_SUCCESS("A1314","根据用户获取角色数据成功"),
    ACL_ASSIGN_ROLE_BY_USER_SUCCESS("A1315","根据用户分配角色成功"),
    ACL_GET_ROLE_LIST_SUCCESS("A1316","获取角色分页列表成功"),
    ACL_GET_ROLE_SUCCESS("A1317","获取角色成功"),
    ACL_ADD_ROLE_SUCCESS("A1318","新增角色成功"),
    ACL_UPDATE_ROLE_SUCCESS("A1318","修改角色成功"),
    ACL_REMOVE_ROLE_SUCCESS("A1318","删除角色成功"),
    ACL_REMOVE_ROLE_BY_IDS_SUCCESS("A1318","根据id列表删除角色"),
    ACL_GET_USER_INFO_BY_TOKEN_SUCCESS("A1319","根据token获取用户信息成功"),
    ACL_GET_MENU_SUCCESS("A1320","获取菜单成功"),
    ACL_LOGOUT_SUCCESS("A1321","注销成功")

    ;





    private final String code;
    private final String message;

    ServiceEnums(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
